package xin.nick.study.dubbo.consumer;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import xin.nick.study.dubbo.UserService;

import java.io.IOException;

/**
 * @Auther: Nick inickning@outlook.com
 * @Date: 2021/2/19 21:18
 * @Description:
 */
public class ConsumerApp {

    public static void main(String[] args) throws IOException {
        ApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        UserService userService = context.getBean(UserService.class);
        userService.say();

        System.in.read();
    }

}
